package com.cyt.work.site.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import com.cyt.work.site.model.po.Student;
import com.cyt.work.site.model.vo.StudentVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 微官网-新生报名Service层接口类
 *
 * @author rong yuan
 * @date 2019-7-8 19:39:31
 */
public interface StudentService extends BaseService<Student> {

    /**
     * 查询对象集合
     *
     * @param studentVo 对象
     * @return List 对象集合
     * @author rong yuan
     * @date 2019-7-8 19:39:31
     */
    List<Student> listExample(StudentVo studentVo);

    /**
     * 分页查询
     *
     * @param studentVo 接受参数对象
     * @param pageNum   分页数
     * @param pageSize  每页显示条数
     * @return ReturnResult
     * @author rong yuan
     * @date 2019-7-8 19:39:31
     */
    ReturnResult page(StudentVo studentVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param studentVo 参数接受对象
     * @param sysUser   当前用户
     * @return ReturnResult
     * @author rong yuan
     * @date 2019-7-8 19:39:31
     */
    ReturnResult addOrUpdate(StudentVo studentVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param studentVo 参数接受对象
     * @param sysUser   当前用户
     * @return ReturnResult
     * @author rong yuan
     * @date 2019-7-8 19:39:31
     */
    ReturnResult remove(StudentVo studentVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param studentVo 参数接受对象
     * @param sysUser   当前用户
     * @return ReturnResult
     * @author rong yuan
     * @date 2019-7-8 19:39:31
     */
    ReturnResult delete(StudentVo studentVo, SysUser sysUser);

    /**
     * 数据导出
     *
     * @param response  响应对象
     * @param studentVo 接受参数对象
     * @author rong yuan
     * @date 2019/7/11 15:55
     */
    void exportStudent(HttpServletResponse response, StudentVo studentVo);
}